package aiku.numericalcontroloa.Model.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 报销表
 * @TableName expense
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="expense")
@Data
public class Expense extends BaseEntity implements Serializable {

    /**
     * 采购订单id
     */
    @TableField(value = "purchase_id")
    private String purchaseId;

    /**
     * 申请人id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 报销金额
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 报销说明
     */
    @TableField(value = "info")
    private String info;

    /**
     * 附加图url
     */
    @TableField(value = "image")
    private String image;

    /**
     * 状态(0待审核中,1审核通过,2审核失败)
     */
    @TableField(value = "status")
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}